<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>自适应图片</title>
    <link rel="stylesheet" href="./style.css">
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/magnific-popup.js/1.1.0/jquery.magnific-popup.min.js"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/magnific-popup.js/1.1.0/magnific-popup.min.css">
</head>
<body>
    <section class="container">
        <h3>Web neo</h3>
        <div class="line"></div>
        <div class="content">
            <a href="./img/1.jpg" class="img">
                <img src="./img/1.jpg" alt="">
            </a>
            <a href="./img/2.jpg" class="img">
                <img src="./img/2.jpg" alt="">
            </a>
            <a href="./img/1.jpg" class="img">
                <img src="./img/1.jpg" alt="">
            </a>
            <a href="./img/2.jpg" class="img">
                <img src="./img/2.jpg" alt="">
            </a>
            <a href="./img/1.jpg" class="img">
                <img src="./img/1.jpg" alt="">
            </a>
            <a href="./img/2.jpg" class="img">
                <img src="./img/2.jpg" alt="">
            </a>
            <a href="./img/1.jpg" class="img">
                <img src="./img/1.jpg" alt="">
            </a>
            <a href="./img/2.jpg" class="img">
                <img src="./img/2.jpg" alt="">
            </a>
            <a href="./img/1.jpg" class="img">
                <img src="./img/1.jpg" alt="">
            <a href="./img/1.jpg" class="img">
                <img src="./img/1.jpg" alt="">
            </a>
            <a href="./img/2.jpg" class="img">
                <img src="./img/2.jpg" alt="">
            </a>
            <a href="./img/1.jpg" class="img">
                <img src="./img/1.jpg" alt="">
            </a>
            <a href="./img/1.jpg" class="img">
                <img src="./img/1.jpg" alt="">
            </a>
            <a href="./img/2.jpg" class="img">
                <img src="./img/2.jpg" alt="">
            </a>
            <a href="./img/1.jpg" class="img">
                <img src="./img/1.jpg" alt="">
        </div>
    </section>
    <script>
        $('.content').magnificPopup({
            delegate: 'a',
            type: 'image',
            gallery: {
                enabled: true
            }
        });
    </script>
</body>
</html>